'''
Created on Aug 4, 2019

@author: yc
'''
import pygame
from sys import exit

BLUE = (0, 0, 255)
WHITE = (255, 255, 255)

pygame.init()
screen = pygame.display.set_mode((1000, 600))
pygame.display.set_caption('yc test')

#画连续折线
# pygame.draw.lines(screen, BLUE, False, [(700,450), (700,150), (300, 150), (300, 450), 
#                                         (650, 450), (650, 200), (350, 200), (350, 400), 
#                                         (600, 400), (600, 250), (400, 250), (400, 350),
#                                         (550, 350), (550, 300), (450, 300)], 10)

#
# pygame.draw.rect(screen, (10, 200, 120), (300, 200, 10, 10))

pygame.draw.line(screen, WHITE, (710,450), (710,145), 20)
pygame.draw.line(screen, BLUE, (700,150), (300, 150), 20)


#画直线
pygame.draw.line(screen, WHITE, (10,10), (430,10), 10)
#pygame.draw.line(screen, BLUE, (10,25), (429,25), 10)
pygame.draw.line(screen, WHITE, (425,16), (425,70), 10)


pygame.display.flip()

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            exit()
